﻿<UserControl x:Class="CreateWorkItem"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2006" 
  xmlns:tfs="clr-namespace:Microsoft.TeamFoundation.Client;assembly=Microsoft.TeamFoundation.Client"
  xmlns:tfswitc="clr-namespace:Microsoft.TeamFoundation.WorkItemTracking.Client;assembly=Microsoft.TeamFoundation.WorkItemTracking.Client"    
  xmlns:tfswitcont="clr-namespace:Microsoft.TeamFoundation.WorkItemTracking.Controls;assembly=Microsoft.TeamFoundation.WorkItemTracking.Controls"  
  xmlns:tfse="clr-namespace:Hinshelwood.TFSHeatITSM.TeamFoundationExtensions"
  xmlns:local="clr-namespace:Hinshelwood.TFSHeatITSM"
  xmlns:Controlers="clr-namespace:Hinshelwood.TFSHeatITSM.Controlers"
             
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
  mc:Ignorable="d" >
    <UserControl.Resources>
        <Style x:Key="ErrorTextBlockStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="Foreground" Value="#FFEE1010" />
            <Setter Property="Width" Value="Auto"/>
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Background" Value="{x:Null}"/>
        </Style>
        <Style x:Key="WelcomeButtonStyle" TargetType="{x:Type Button}">
            <Setter Property="Foreground" Value="#FFFFFF" />
            <Setter Property="Width" Value="Auto"/>
            <Setter Property="FontSize" Value="16"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Border x:Name="bd" CornerRadius="3,3,3,3" Padding="5,0,0,0">
                                <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True" Margin="5,1,0,1"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsKeyboardFocused" Value="true"/>
                            <Trigger Property="IsMouseOver" Value="true">
                                <Setter Property="Cursor" Value="Hand"/>
                                <Setter Property="Background" TargetName="bd" Value="#FF29367B"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

    </UserControl.Resources>

    <!--Setup menu command bindings-->
    <!--<UserControl.CommandBindings>
        <CommandBinding Command="local:Commands.ChangeTeamServerCommand" Executed="ChangeTeamServerCommand_Executed"/>
    </UserControl.CommandBindings>-->

    <DockPanel>
        <Border Width="Auto" Margin="15,5,15,5" Padding="5" Opacity="1" x:Name="Header" Background="{DynamicResource DiagramGradientBrush}" BorderThickness="0" HorizontalAlignment="Stretch">
            <!--Setup menu command bindings-->
            <DockPanel>
                <TextBlock  Margin="10,0,0,0" DockPanel.Dock="Bottom" Style="{DynamicResource ErrorTextBlockStyle}" x:Name="MessageBox"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="auto" Height="30" TextWrapping="Wrap" TextAlignment="Center">
                </TextBlock>
                <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal">
                <Button Content="Close" Command="Controlers:TeamSystemCommands.SaveWorkItemCommand"></Button>
                    <Button Content="Save" Name="Button1"></Button>
            </StackPanel>
                <WindowsFormsHost DockPanel.Dock="Top" Margin="10,10,10,0" MinHeight="10" Name="WindowsFormsHost2">
                    <tfswitcont:WorkItemInformationBar x:Name="uxWorkItemInformationBar" />
                </WindowsFormsHost>
                <WindowsFormsHost Margin="10,0,10,10" MinHeight="200"  Name="WindowsFormsHost1">
                    <tfswitcont:WorkItemFormControl x:Name="uxWorkItemFormControl" />
                </WindowsFormsHost>
                
            </DockPanel>
        </Border>
        <!-- Content -->


       

    </DockPanel>
</UserControl>
